import request from '@/utils/request'

// 查询店铺管理列表
export function listProperties(query) {
  return request({
    url: '/shop/properties/list',
    method: 'get',
    params: query
  })
}
//查詢我的店鋪列表
export function listMyProperties(query) {
  return request({
    url: '/shop/properties/myList',
    method: 'get',
    params: query
  })
}

// 查询店铺管理详细
export function getProperties(propertyId) {
  return request({
    url: '/shop/properties/' + propertyId,
    method: 'get'
  })
}

// 新增店铺管理
export function addProperties(data) {
  return request({
    url: '/shop/properties',
    method: 'post',
    data: data
  })
}

// 修改店铺管理
export function updateProperties(data) {
  return request({
    url: '/shop/properties',
    method: 'put',
    data: data
  })
}

// 删除店铺管理
export function delProperties(propertyId) {
  return request({
    url: '/shop/properties/' + propertyId,
    method: 'delete'
  })
}

